What is DECO?
DECO is a system to monitor the flux of cosmic-rays over a large area using the camera chips in cellphones as the sensor element. While each chip has a small surface area with which to detect possible events, a large number of phones scattered over a county or state can provide for a much larger virtual detector.
This is accomplished by running the DECO application on a number of Android phones and passing along potential event data to a central serve for future analysis.
This finds all the images in the current directory and writes the following statistical values to a csv file:
Image size, Image width, Image height,
Max subpixel value,
Position of max subpixel
Minimum subpixel value and position of that subpixel
Average value of pixels
Relative variation in pixels
Standard deviation of pixels
import pylab
import numpy
importosimportglobimportcsv#gets current path
path =os.getcwd()#opens csv file and write a header
c =csv.writer(open("DECOImageAnalysis.csv","wb"))
c.writerow(["Image size","Image width","Image height","Max image value","Position of max image value","Min image value","Position of min image value","Average value","Relative variation","Standard deviation"])#The for loop finds all the files ending in .jpg and writes statistical values of that image on the csvfor infile inglob.glob(os.path.join(path,'*.jpg')):
print"current file is: " + infile
img=pylab.imread(infile)
relVar = img.mean()/img.std()
c.writerow(["%6d"%(img.size),"%3d"%img.shape[0],"%3d"%img.shape[1],"%1.2f"%img.max(),"%6d"%img.argmax(),"%1.2f"%img.min(),"%6d"%img.argmin(),"%1.5f"%img.mean(),"%1.5f"%relVar,"%1.5f"%img.std()])
Research
DECO - Distributed Electronic Cosmic-ray Observatory
What is DECO?
DECO is a system to monitor the flux of cosmic-rays over a large area using the camera chips in cellphones as the sensor element. While each chip has a small surface area with which to detect possible events, a large number of phones scattered over a county or state can provide for a much larger virtual detector.
This is accomplished by running the DECO application on a number of Android phones and passing along potential event data to a central serve for future analysis.
Project wiki
What are cosmic-rays?
History
Extensive air showers
Initial testing data
Preliminary results from August 2012:
Further results from August 2013:
Image analysis script for DECO:
This finds all the images in the current directory and writes the following statistical values to a csv file:
- Image size, Image width, Image height,
- Max subpixel value,
- Position of max subpixel
- Minimum subpixel value and position of that subpixel
- Average value of pixels
- Relative variation in pixels
- Standard deviation of pixels
download:Example Images
Track.jpg Image with cosmic-ray track.
TrackEnhanced.png Same image, but magnified and with the color range compressed.
NoTrack.jpg Image with noise due to heating from the phone.
NoTrackEnhanced.jpg Same image, but with the color range compressed.
Source Code and Android Install files